{if $order_list}
{foreach $order_list as $k=>$v}
<div class="order-deta clearfix">
  <p class="deta-txt js_openLink" data-login="1" data-href="{AnUrl("order/{$v.id}")}">
  <span>订单号：{$v.id}</span>
  <span>　/　</span>
  <span>{substr($v.add_time, 0, 10)} </span>
  <span>>></span>
  </p>
  <div class="deta-shopp">
    <ul class="clearfix">
      {foreach $v.detail as $key => $value}
      {if $key < 4}
      <li>
        <h6 class="js_openLink" data-target="_blank" data-href="{AnUrl("goods/{$value.goods_id}")}"><img src="{_image($value.goods_cover, 'middle')}" width="82"/></h6>
        <p class="deta-txt2 js_openLink" data-target="_blank" data-href="{AnUrl("goods/{$value.goods_id}")}">{$value.goods_title}</p>
        <p class="deta-txt3">{number_format($value.goods_price, 2)}元</p>
      </li>
      {/if}
      {/foreach}
    </ul>
    <div class="deta-wary"><span class="deta-txt6">共计：</span><span class="deta-txt4">{number_format($v.price, 2)}</span><span class="deta-txt5">元</span></div>
  </div>
  <div class="deta-pay">
    <span class="deta-back js_cancelOrder" data-order_id="{$v.id}">取消订单</span>
    <a href="javascript:void(0);" class="js_openLink" data-login="1" data-href="{AnUrl("{openapi_config::$pay_type[$v.pay_type]['module']}?order_id={$v.id}")}">付款</a>
  </div>
</div>
{/foreach}
{else}
<div class="shopp">
  <a href="javascript:void(0);">好久没在NBD商城买东西了，快去逛逛吧~</a>
</div>
{/if}